package com.foxmail.aroundme.boring.utils.m_enum;

import android.support.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Created by gzl on 12/20/16.
 * 错误模式
 */

public class RequestErrorType {

    @IntDef({REQUEST_NONE, NET_ERROR, REQUEST_ERROR, REQUEST_DB_ERROR})
    @Retention(RetentionPolicy.SOURCE)
    public @interface Request{}

    public static final int REQUEST_NONE = -1;
    public static final int NET_ERROR = 0;
    public static final int REQUEST_ERROR = 1;
    public static final int REQUEST_DB_ERROR = 2;

}
